package com.hcs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author hcs
 * @since 2025-01-12 09:26
 */
@Getter
@Setter
@TableName("user")
@Schema(name = "user", description = "用户表")
public class User {

    // 主键
    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 用户名
    @Schema(description = "用户名")
    @TableField("username")
    private String username;

    // 密码
    @Schema(description = "密码")
    @TableField("password")
    private String password;

    // 昵称
    @Schema(description = "昵称")
    @TableField("nickname")
    private String nickname;

    // 手机号
    @Schema(description = "手机号")
    @TableField("phone")
    private String phone;

    // 邮箱
    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    // 头像
    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;

    // 创建时间
    @Schema(description = "创建时间")
    @TableField("created_at")
    private Date createdAt;

    // 更新时间
    @Schema(description = "更新时间")
    @TableField("updated_at")
    private Date updatedAt;
}
